package cm.match.rule.impl;

import cm.match.dto.RuleDto;
import cm.match.rule.AbstractRule;

import static cm.match.constant.RuleConstant.MATCH_MIN_AGE;

public class Flag110Rule extends AbstractRule {


    @Override
    public boolean execute(RuleDto dto) {
        System.out.println("Flag110Rule invoke!");
        if (dto.getAge() > MATCH_MIN_AGE  && dto.getAddress().startsWith("杭州")) {
            return true;
        }
        return false;
    }
}
